﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Foundation.Entity;

namespace Dyao.Book.Entity
{
    [Table("BookCatalogueMatchSource")]
    public class BookCatalogueMatchSourceEntity : IEntity<int>, ICreateOn
    {
        /// <summary>
        /// ID
        /// </summary>
        [Required]
        [Column("Id", TypeName = "INT")]
        [Key]
        public int ID { get; set; }

        /// <summary>
        /// 书籍Id
        /// </summary>
        public string BookId { get; set; }

        /// <summary>
        /// 书籍目录编号
        /// </summary>
        public string BookCatalogueId { get; set; }

        /// <summary>
        /// 书源Key
        /// </summary>
        public string SourceKey { get; set; }

        /// <summary>
        /// 书籍Url
        /// </summary>
        public string SourceUrl { get; set; }

        /// <summary>
        /// 爬取时间
        /// </summary>
        [Required]
        public DateTime CreateDateTime { get; set; }
    }
}
